package com.hmall.domain.constant;

/**
 * mq常量接口
 *
 * @Author XiaoJiangShi
 * @Date 2022/8/11 16:57
 * @Blog blog.XiaoJiangShi.net/996.mba
 * @Description: mq常量接口
 */
public interface MqConstant {

    /**
     * 商品item交换机
     */
    String ITEM_EXCHANGE = "item.direct";

    /**
     * 商品item新增或更改的队列
     */
    String ITEM_INSERT_QUEUE = "item.insert.queue";

    /**
     * 商品item删除队列
     */
    String ITEM_DELETE_QUEUE = "item.delete.queue";

    /**
     * 商品item新增或更改的路由key
     */
    String ITEM_INSERT_ROUT = "item.insert";

    /**
     * 商品item删除的路由key
     */
    String ITEM_DELETE_ROUT = "item.delete";


    /**
     * 订单order交换机
     */
    String ORDER_EXCHANGE = "order.direct";

    /**
     * 订单order死信交换机
     */
    String ORDER_DL_EXCHANGE = "order.dl.direct";

    /**
     * 订单order提交队列
     */
    String ORDER_COMMIT_QUEUE = "order.commit.queue";

    /**
     * 订单order死信队列
     */
    String ORDER_DL_QUEUE = "order.dl.queue";

    /**
     * 订单order死信的路由key
     */
    String ORDER_DL_ROUT = "order.dl";

    /**
     * 订单order提交的路由key
     */
    String ORDER_COMMIT_ROUT = "order.commit";


}

